import { Component } from '@angular/core';
import { IRouterProvider, NavbarService } from './component/navbar/navbar.service';
import { Router } from '@angular/router';

@Component({
  selector: 'my-app',
  templateUrl: 'app/app.component.html'
})
export class AppComponent implements IRouterProvider {
  name = 'Angular';

  constructor(private router: Router) {
    NavbarService.Current.Register(this);
  }

  navigate(args: any) {
    return this.router.navigate(args);
  }
}
